<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/pages/common/taglib.jsp"%>
<c:forEach var="blog" varStatus="blogindex" items="${blogs}">
	<tr data-categoryid="${blog.categoryId}" data-userid="${blog.userId}" data-opid="${blog.id}">
		<td><input type="checkbox" class="tmckb" value="${blog.id}"/><c:if test="${blogindex.index==0}"><input id="itemsCount" type="hidden" value="${itemsCount}"></c:if></td>
		<td><a href="${basePath}/blog/detail/${blog.id}.do">${blog.title}</a></td>
		<td>${blog.name}</td>
		<td>${blog.username}</td>
		<td>${tm:dataFormat(blog.createTime,'yyyy-MM-dd HH:mm:ss')}</td>
		<td>${blog.hits}/${blog.comments}</td>
		<td><a href="javascript:void(0);" opid="${blog.id}" istop="${blog.isTop}" tag="1" onclick="tmAdmin.change(this)" class="${blog.isTop==1?'green':'red'}">${blog.isTop==1?"是":"否"}</a></td>
		<td><a href="javascript:void(0);" opid="${blog.id}" status="${blog.status}" tag="0" onclick="tmAdmin.change(this)" class="${blog.status==1?'green':'red'}">${blog.status==1?"发布":"未发布"}</a></td>
		<td>
			<a href="${basePath}/admin/add.do"><i class='iconfont icon-icadd fz14'></i></a>
			<a href="${basePath}/admin/edit/${blog.id}.do"><i class='iconfont icon-icedit fz14'></i></a>
			<a href="javascript:void(0)" opid="${blog.id}" onclick="tmAdmin.del(this)"><i class='iconfont icon-icdelete fz14'></i></a>
		</td>
	</tr>
</c:forEach>